package com.tool.emulator.apple2.ui;

import java.awt.*;

/**
 * UIUtil.java @author tl 2011-6-24
 */
public class UIUtil {
	public static <T> T findComponent(Component c, Class<T> type) {
		for (; c != null && !type.isInstance(c); c = c.getParent()) ;
		return (T) c;
	}
}
